// #[tokio::test]
// async fn test() -> anyhow::Result<()> {
//     let addr = "0.0.0.0:4100";
//     let socket = UdpSocket::bind(addr).await?;

//     socket.set_broadcast(true)?;
//     log::debug!("udp server running on {}",&addr);

//     loop {
//         let mut buf = [0; 1024];
//         let (n, addr) = socket.recv_from(&mut buf).await?;
//         let message = std::str::from_utf8(&buf[..n])?;

//         println!("Received message from {}: {}", addr, message);

//         let response = "Hello, client!";
//         socket.send_to(response.as_bytes(), addr).await?;
//     }
// }
